package com.eeepay.eeepay_v2.adapter;


import android.content.Context;
import android.widget.TextView;

import com.eeepay.eeepay_v2.R;
import com.eeepay.eeepay_v2.model.GrabBisInfo;
import com.eeepay.v2_library.adapter.ABBaseAdapter;
import com.eeepay.v2_library.adapter.ABViewHolder;

/**
 * Created by Ching on 2016/3/25.
 */
public class GrabBisAdpater extends ABBaseAdapter<GrabBisInfo> {

    public GrabBisAdpater(Context context) {
        super(context);
    }

    @Override
    public int getLayoutId() {
        return R.layout.item_grab_bis_list;
    }

    @Override
    public void convert(ABViewHolder holder, GrabBisInfo model) {

        holder.setText(R.id.tv_grab_device, model.getDevice());
        holder.setText(R.id.tv_grab_orderNo, model.getOrderNo());
        holder.setText(R.id.tv_grab_title, model.getTitle());

    }
}
